import requests
url='http://www.baidu.com'
data = {"name":'yuz'}
headers={'token':'123'}
res = requests.get(url,params=data,headers=headers)

# POSt请求1.form表单形式，参数是data = ，
form_data = {"name":'666'}
res = requests.post(url,json = form_data,params=data,headers=headers)
#print(res.json())
#print(res.text)

url = 'http://api.lemonban.com/futureloan/member/register'
headers  ={"X-lemonban-Media-Type":"lemonban.v2"}
data = {"mobile_phone":"13413766444","pwd":"354dasdas68"}
res = requests.post(url,json=data,headers=headers)
print(res.json())

#充值
url='http://api.lemonban.com/futureloan/member/recharge'
headers={"X-lemonban-Media-Type":"lemonban.v2","Authorization":"Bear"}
data = {"mobilephone":"13413766444","pwd":"354dasdas68","amount":"100"}
#res = requests.post(url,data=data,headers=headers)
#print(res.json())